#ifndef GRID
#define GRID

#include "../node.h"
#include "../core/math/timer.h"

namespace sleek
{
    namespace node
    {
        namespace real
        {
            class Grid : public Node
            {
                public:
                    Grid(core::engine::engine*, texture::pixel color = texture::pixel(0,128,128));
                    virtual ~Grid();

                    void setQuadSize(core::f32);
                    void setSpace(core::math::aabbox2df);
                    void setColor(texture::pixel);

                    texture::pixel getColor();
                    core::math::aabbox2df getSpace();
                    core::f32 getQuadSize();

                    virtual void render();
                protected:
                    GLuint call;

                    virtual void renderGrid();
                    core::math::aabbox2df space;
                    texture::pixel color;
                    core::f32 size;
            };
        }
    }
}

#endif
